//
//  ADJgSDKBannerAdContainer.h
//  AnyThinkSDKDemo
//
//  Created by 刘娟 on 2024/9/26.
//  Copyright © 2024 抽筋的灯. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ADJgSDK/ADJgSDKBannerAdView.h>
@class ADJgSDKBannerAdContainer;
NS_ASSUME_NONNULL_BEGIN
@protocol ADJgSDKBannerAdContainerDelegate <NSObject>
/**
 *  激励视频广告素材加载成功
 */
- (void)jgsdkContainer_jgsdkBannerAdDidLoad:(ADJgSDKBannerAdContainer *)bannerAd withPrice:(NSInteger)bidPrice;

/**
 *  激励视频广告请求失败
 */
- (void)jgsdkContainer_jgsdkBannerAdFailLoadError:(NSError *)error;

@end

@interface ADJgSDKBannerAdContainer : NSObject

@property (nonatomic, weak)id<ADJgSDKBannerAdContainerDelegate> containerDelegate;

@property (nonatomic, weak)id<ADJgSDKBannerAdViewDelegate> delegate;

@property (nonatomic, weak)UIViewController *controller;

@property(nonatomic, strong) ADJgSDKBannerAdView *bannerView;


/// 初始化容器
- (instancetype)initPosId:(NSString *)posId delegate:(id<ADJgSDKBannerAdViewDelegate>)delegate frame:(CGRect)frame;

/// 加载
- (void)loadAndShow;

/// 销毁
- (void)close;

///获取竞价价格
- (NSInteger)getBidPrice;

@end

NS_ASSUME_NONNULL_END

